<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script>
			function Person(nation, skinColor) {
				this.nation = nation;
				this.skinColor = skinColor;
			}
			Person.prototype.getNation = function() {
				return this.nation;
			}
			Person.prototype.getSkinColor = function() {
				return this.skinColor;
			}

			function Woman(sex, nation, skinColor) {
				this.sex = sex;
				this.nation = nation;
				this.skinColor = skinColor;
				Person.call(this, nation, skinColor);
			}

			Woman.prototype = new Person();
			Woman.prototype.getSex = function() {
				//				alert(1);
				return this.sex;
			}
			var woman1 = new Woman("女", "汉", "黄色");
			var nat = woman1.getNation();
			var colo = woman1.getSkinColor();
			var age = woman1.getSex();

			alert(nat + " " + colo + "  "+age);
		</script>

	</body>

</html>